<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@page import="java.util.Vector,beans.Genero" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cadastro Filme</title>
</head>

<body>
<form id="cadastro" name="cadastro" method="get" action="CadastrarFilme">
  <table width="438" border="0" align="center" cellpadding="0" cellspacing="5">
    <tr>
      <td colspan="3"><div align="center">Cadastro de Filme </div></td>
    </tr>
    <tr>
      <td colspan="3">&nbsp;</td>
    </tr>
    <tr>
      <td width="130">Nome do Filme </td>
      <td colspan="2"><label>
        <input name="nome" type="text" size="42" />
      </label></td>
    </tr>
    <tr>
      <td>Gênero</td>
      <td colspan="2"><label>
        <select name="generos">
        <% Vector<Genero> Gen = new Vector<Genero>();
        	Gen = (Vector<Genero>)request.getAttribute("Generos");
         	for(int i=0;i<Gen.size();i++){
         %>
         <option value="<%=Gen.get(i).getCodigo() %>"><%=Gen.get(i).getNome() %></option>
         <%} %>
        </select>
      </label></td>
    </tr>
    <tr>
      <td>Data</td>
      <td width="143">Mes: 
        <label>
        <select name="mes" id="mes">
          <option value="01" selected="selected">Janeiro</option>
          <option value="02">Fevereiro</option>
          <option value="03">Março</option>
          <option value="04">Abril</option>
          <option value="05">Maio</option>
          <option value="06">Junho</option>
          <option value="07">Julho</option>
          <option value="08">Agosto</option>
          <option value="09">Setembro</option>
          <option value="10">Outubro</option>
          <option value="11">Novembro</option>
          <option value="12">Dezembro</option>
        </select>
      </label></td>
      <td width="145">Ano: 
        <label>
        <select name="ano" id="ano">
          <option value="2005">2005</option>
          <option value="2006">2006</option>
          <option value="2007" selected="selected">2007</option>
          <option value="2008">2008</option>
          <option value="2009">2009</option>
          <option value="2010">2010</option>
        </select>
      </label></td>
    </tr>
    <tr>
      <td colspan="3"><label>
        <div align="center"> <br />
        <input type="submit" name="Submit" value="Cadastrar" />
          <input type="reset" name="Submit2" value="Limpar" />
          </div></label>
        <label>
        <div align="center"></div>
      </label></td>
    </tr>
  </table>
</form>
</body>
</html>
